#pragma once

#include <string>
using namespace std;

#include "commercialBuilding.h"
class hotel :
	public commercialBuilding
{
protected:
	int numBeds;
public:

	hotel()
	{
		numBeds = -1;
	}

	hotel(string info, int numBeds) : commercialBuilding(info)
	{
		this->numBeds = numBeds;
	}

	int getNumBeds()
	{
		return numBeds;
	}

	void setNumBeds(int numBeds)
	{
		this->numBeds = numBeds;
	}

	~hotel()
	{
	}

	virtual void print()
	{
		commercialBuilding::print();
		cout << "Number of beds = " << numBeds << endl;
	}
};

